import 'package:car_map/page/routers/router_init.dart';
import 'package:car_map/page/squarepage/car_service_page/car_service_page.dart';
import 'package:car_map/page/squarepage/parkinglot_page.dart';
import 'package:car_map/page/squarepage/phone_internet_time_page.dart';
import 'package:car_map/page/squarepage/realname_query_page.dart';
import 'package:car_map/page/squarepage/repair_page/repair_page.dart';
import 'package:car_map/page/squarepage/violation_selete_page.dart';
import 'package:car_map/widget/web_scaffold.dart';
import 'package:fluro/fluro.dart';
import 'package:fluro/src/router.dart';

import 'package:car_map/page/squarepage/attractions_page/attractions_page.dart';
import 'bank_card_page.dart';
import 'byrent_car_page.dart';
import 'car_wash_page.dart';
import 'package:car_map/page/squarepage/coffee_shop_page/coffee_shop_page.dart';
import 'driving_page.dart';
import 'enterprise_data_page.dart';
import 'flow_card_page.dart';
import 'food_page/food_page.dart';
import 'four_s_page.dart';
import 'gas_page.dart';
import 'hospital_page/hospital_page.dart';
import 'loan_blacklist_page.dart';
import 'lost_letter_blackList_page.dart';
import 'pharmacy_page/pharmacy_page.dart';

class SquareRouter with IRouterProvider {

  //汽车知识
  static String webScaffoldPage='/webScaffoldPage';
  //实名认证
  static String realNameQueryPage='/realNameQueryPage';
  //手机在网网时长
  static String phoneInternetTimePage='/phoneInternetTimePage';
  //查询银行卡四要素
  static String bankCardPage='/bankCardPage';
  //企业工商数据查询
  static String enterPriseDataPage='/enterPriseDataPage';
  //网贷黑名单查询
  static String loanBlackListPage='/loanBlackListPage';
  //失信黑名单查询
  static String lostLetterBlackListPage='/lostLetterBlackListPage';
  //流量卡查询
  static String flowCardPage='/flowCardPage';
  //违章查询
  static String violationSeletePage='/violationSeletePage';
  //加油站
  static String gasPage='/gasPage';
  //停车场
  static String parkingLotPage='/parkingLotPage';
  //洗车服务
  static String carWashPage='/carWashPage';
  //代驾服务
  static String drivingPage='/drivingPage';
  //汽车凭租
  static String byrentCarPage='/byrentCarPage';
  //景点
  static String attractionsPage='/attractionsPage';
  //4s店
  static String fourSPage='/fourSPage';
  //咖啡店
  static String coffeeShopPage='coffeeShopPage';
  //医院
  static String hospitalPage='/hospitalPage';
  //药店
  static String pharmacyPage='/pharmacyPage';
  //汽车维修
  static String repairPage='/repairPage';
  //美食
  static String foodPage='/foodPage';
  //汽车服务
  static String carService='/carService';

  @override
  void initRouter(Router router) {
    // TODO: implement initRouter

    router.define(webScaffoldPage, handler: Handler(handlerFunc: (_,params){
      var title=params['title'].first;
      var urlPath=params['urlPath'].last;
      return WebScaffoldPage(title: title,url: urlPath,);
    }));

    router.define(realNameQueryPage, handler: Handler(handlerFunc: (_,params){
      return RealNameQueryPage();
    }));

    router.define(phoneInternetTimePage, handler: Handler(handlerFunc: (_,params){
      return PhoneInternetTimePage();
    }));

    router.define(bankCardPage, handler: Handler(handlerFunc: (_,params){
      return BankCardPage();
    }));

    router.define(enterPriseDataPage, handler: Handler(handlerFunc: (_,params){
      return EnterPriseDataPage();
    }));

    router.define(loanBlackListPage, handler: Handler(handlerFunc: (_,params){
      return LoanBlackListPage();
    }));

    router.define(lostLetterBlackListPage, handler: Handler(handlerFunc: (_,paeams){
      return LostLetterBlackListPage();
    }));

    router.define(flowCardPage, handler: Handler(handlerFunc: (_,params){
      return FlowCardPage();
    }));

    router.define(violationSeletePage, handler: Handler(handlerFunc: (_,params){
      return ViolationSeletePage();
    }));

    router.define(gasPage, handler: Handler(handlerFunc: (_,params){
      return GasPage();
    }));

    router.define(parkingLotPage, handler: Handler(handlerFunc: (_,params){
      return ParkingLotPage();
    }));

    router.define(carWashPage, handler: Handler(handlerFunc: (_,params){
      return CarWashPage();
    }));

    router.define(drivingPage, handler: Handler(handlerFunc: (_,params){
      return DrivingPage();
    }));

    router.define(byrentCarPage, handler: Handler(handlerFunc: (_,params){
      return ByrentCarPage();
    }));

    router.define(attractionsPage, handler: Handler(handlerFunc: (_,params){
      return AttractionsPage();
    }));

    router.define(fourSPage, handler: Handler(handlerFunc: (_,params){
      return FourSPage();
    }));

    router.define(coffeeShopPage, handler: Handler(handlerFunc: (_,params){
      return CoffeeShopPage();
    }));
    router.define(hospitalPage, handler: Handler(handlerFunc: (_,params){
      return HospitalPage();
    }));

    router.define(pharmacyPage, handler:Handler(handlerFunc: (_,params){
      return PharmacyPage();
    }));

    router.define(repairPage, handler: Handler(handlerFunc: (_,params){
      return RepairPage();
    }));

    router.define(foodPage, handler: Handler(handlerFunc: (_,params){
      return FoodPage();
    }));

    router.define(carService, handler: Handler(handlerFunc: (_,params){
      return CarServicePage();
    }));
  }

}